import uiManager from "./uiManager";
import { util } from "./util";

const {ccclass, property} = cc._decorator;

@ccclass
export default class pillar extends cc.Component {

    private uiManager:uiManager = null;
    private isInit:boolean = false;
    init(uiManager:uiManager){
        this.uiManager = uiManager
        this.isInit = true

    }
    // onLoad () {}


    update (dt) {
        if(this.uiManager.isMoveState && this.isInit){
            this.node.x -= dt * util.moveSpeed
        }
    }
}
